<?php if(!defined('IN_FANWE')) exit('Access Denied'); ?>
<script type="text/javascript">
<?php 
if(!empty($_FANWE['authoritys']))
{
$manages = array_keys($_FANWE['authoritys']);
$manages = implode(',',$manages);
}

$is_image_servers = 0;
if(FS('Image')->getIsServer())
$is_image_servers = 1;

if(!empty($_FANWE['cookie']['show_zone_follow']))
{
echo 'jQuery(function($){$.Show_Zone_Follow();});';
fSetCookie('show_zone_follow','');
}
 ?>
var MANAGES = "<?php echo $manages;?>";
var IS_IMAGE_SERVERS = <?php echo $is_image_servers;?>;
var SHARE_IMAGE_SAVE_TYPE = <?php echo $_FANWE['setting']['share_image_save_type'];?>;
var SHARE_PHOTO_MAX_SIZE = <?php echo $_FANWE['setting']['max_upload'];?>;
</script>
<?php 
if(!empty($_FANWE['cookie']['dynamic_script']))
{
echo stripslashes($_FANWE['cookie']['dynamic_script']);
fSetCookie('dynamic_script','');
}
 if(is_array($_FANWE['delay_scripts'])) { foreach($_FANWE['delay_scripts'] as $delay_script) { ?><script src="<?php echo $delay_script;?>" type="text/javascript" defer="true"></script>
<?php } } ?>